import request from '@/utils/request'


//查询参保商家信息列表
export function getMerchantList(params) {
    return request({
        url: '/merchant/v1/insurance/list',
        method: 'get',
        params
    })
}

//行业类型
export function shopTypeTree(params) {
    return request({
        url: `/common/v1/shopTypeListAll`,
        method: 'get',
        params
    })
}

//查询参保商家基础信息
export function getMerchantId(merchantId) {
    return request({
        url: `/merchant/v1/base/${merchantId}`,
        method: 'get'
    })
}

//查询参保商家信息列表
export function getInsuranceList(params) {
    return request({
        url: '/merchant/v1/insurance/card/list',
        method: 'get',
        params
    })
}

//查询参保商家基础信息
export function getAssetId(assetId) {
    return request({
        url: `/merchant/v1/card/detail/${assetId}`,
        method: 'get'
    })
}


//保险承保卡明细列表
export function getInsuranceV1List(params) {
    return request({
        url: '/insurance/card/v1/list',
        method: 'get',
        params
    })
}

//查询参保卡详情
export function getCustomerCardId(customerCardId) {
    return request({
        url: `/insurance/card/v1/${customerCardId}`,
        method: 'get'
    })
}
//查询保险配置变更记录
export function insuranceAuditList(params) {
    return request({
        url: '/merchant/v1/insuranceAudit/list',
        method: 'get',
        params
    })
}
// 商家保险审核
export function insuranceAuditAudit(params) {
    return request({
      url: `/merchant/v1/insuranceAudit/audit`,
      method: 'put',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      params
    })
  }